//2009/08/07 19:07:43
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

class LCMRange
{
public:
    int lcm(int first, int last)
    {
		int result = first;
		for(int i=last; i>first; i--)
		{
			result = result / gcd(result, i) * i;
		}
		return result;
    }
	private:
	int gcd(int a, int b)
	{
		return b == 0 ? a : gcd(b, a % b);
	}
};
